home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-11-29 | 3.8 KB | 91 lines | [TEXT/MSET] |
- IMPORTANT CONSOLE OUTPUT WORDS
-
- . n -- Displays a number, followed by one space.
- .H n -- Displays number in hex.
- .R n w --
- Prints n using the current number base, right-justified in a field w
- characters wide. The entire number is printed even if it exceeds field
- width.
- U. n --
- Displays a number as an unsigned number, followed by one space.
- U.H n -- Displays unsigned number in hex.
- U.R u w --
- Displays the unsigned number u right justified in a field of width w.
- The entire number is displayed, even if its width exceeds w.
- CLS --
- Clears the current window and leaves cursor in upper left corner.
- CR --
- "Prints" a carriage-return/linefeed (cr/lf) on the screen. If system
- vector pcrvec is vectored to pcr, by executing +print, the cr sends a
- cr/lf to the printer.
- EMIT c --
- Prints the character (lower 8 bits of the number) on the stack to the
- screen or printer by executing the system vectors emitvec and
- pemitvec. Whether the screen and/or printer are used depends on the
- contents of emitvec and pemitvec. When Mops starts up, emitvec is
- vectored to (emit) and pemitvec is vectored to drop. So, the default
- action of emit is to print a character on the screen only. Selecting
- Echo to Printer from the Mops menu vectors echovec to echo, which
- prints a character on the screen and the printer (this is the same as
- +print). The system value OUT is incremented for each character
- transmitted.
- HOME --
- Moves the cursor to the upper left corner of the current window.
- SPACE -- Emits an ascii blank (32).
- SPACES n -- Emits n ascii blanks.
- TYPE addr len --
- Prints an (addr-len format) string on the screen or printer, by
- executing the system vectors typevec and ptypevec. When Mops starts
- up, typevec is vectored to the primitive (type) that prints a string
- on the screen, and ptypevec is vectored to 2drop. So the default
- action of type is to print a string on the screen only. Type
- increments value OUT by len.
-
- +CURS -- Turns on display of the cursor on the screen.
- -CURS -- Turns off display of the cursor on the screen.
- +ECHO --
- Turns on echoing to the screen of source files being loaded from disk.
- You may want to use +echo when loading a newly created source file to
- help spot any code snagging compilation. Echo is toggled by the
- keyboard short cut: Command-O
- -ECHO --
- Turns off echoing to the screen of source files being loaded from
- disk. Echo is toggled by the keyboard short cut: Command-O
-
-
- MISCELLANEOUS WORDS
-
- #LEAD -- n
- Computes an appropriate leading for the current window.
- #LINES -- n
- Computes the number of lines for the current window.
- (ContTop-ContBot)/#lead.
- (BS) --
- Moves the cursor back by 6 pixels, performing expected behavior for a
- backspace in the console.
- (CR) -- Primitive called by system vectors when cr is executed.
- (EMIT) c -- Prints a character on the screen only.
- (NUMBER) addr -- n addr' Primitive used by number.
- (QUERY) ?
- (TYPE) addr len -- Prints the given text to the screen.
- BOTTOM -- n Computes a quantity needed by the console.
- ECHO? -- b A value. Set true to echo loads to screen.
- EMITCYCLES ?
- EXPECT addr cnt --
- Transfers characters from the keyboard to memory starting at addr
- until a return is received or cnt characters have been input.
- Characters are echoed to the primary and secondary devices by
- executing the system vector echovec. When Mops starts up, echovec is
- vectored to (emit), so that characters are echoed to the screen only.
- Expect adds a null at the end of the text string.
- KeyExp ( -- c )
- Reads one key for EXPECT. Handles backspaces and tabs.
- NUM? addr -- n true | -- false
- NUMBER addr -- n
- Attempts to convert the text beginning at addr+1 to a number. If
- successful leaves the number on the stack, otherwise aborts.
- QNOTFOUND ?
- SCROLL dh dv --
- Scrolls the current window by dh dv pixels. Uses fprect and
- ScrollRect.
-